/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Ointment Drug Form Member1</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.hl7.v3.V3Package#getOintmentDrugFormMember1()
 * @model extendedMetaData="name='OintmentDrugForm_._member_._1'"
 * @generated
 */
public enum OintmentDrugFormMember1 implements Enumerator {
	/**
	 * The '<em><b>OINT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #OINT_VALUE
	 * @generated
	 * @ordered
	 */
	OINT(0, "OINT", "OINT"),

	/**
	 * The '<em><b>NASOINT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #NASOINT_VALUE
	 * @generated
	 * @ordered
	 */
	NASOINT(1, "NASOINT", "NASOINT"),

	/**
	 * The '<em><b>OINTAPL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #OINTAPL_VALUE
	 * @generated
	 * @ordered
	 */
	OINTAPL(2, "OINTAPL", "OINTAPL"),

	/**
	 * The '<em><b>OPOINT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #OPOINT_VALUE
	 * @generated
	 * @ordered
	 */
	OPOINT(3, "OPOINT", "OPOINT"),

	/**
	 * The '<em><b>OTOINT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #OTOINT_VALUE
	 * @generated
	 * @ordered
	 */
	OTOINT(4, "OTOINT", "OTOINT"),

	/**
	 * The '<em><b>RECOINT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RECOINT_VALUE
	 * @generated
	 * @ordered
	 */
	RECOINT(5, "RECOINT", "RECOINT"),

	/**
	 * The '<em><b>TOPOINT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TOPOINT_VALUE
	 * @generated
	 * @ordered
	 */
	TOPOINT(6, "TOPOINT", "TOPOINT");

	/**
	 * The '<em><b>OINT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>OINT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #OINT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int OINT_VALUE = 0;

	/**
	 * The '<em><b>NASOINT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>NASOINT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #NASOINT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int NASOINT_VALUE = 1;

	/**
	 * The '<em><b>OINTAPL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>OINTAPL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #OINTAPL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int OINTAPL_VALUE = 2;

	/**
	 * The '<em><b>OPOINT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>OPOINT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #OPOINT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int OPOINT_VALUE = 3;

	/**
	 * The '<em><b>OTOINT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>OTOINT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #OTOINT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int OTOINT_VALUE = 4;

	/**
	 * The '<em><b>RECOINT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>RECOINT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RECOINT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int RECOINT_VALUE = 5;

	/**
	 * The '<em><b>TOPOINT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>TOPOINT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TOPOINT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int TOPOINT_VALUE = 6;

	/**
	 * An array of all the '<em><b>Ointment Drug Form Member1</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final OintmentDrugFormMember1[] VALUES_ARRAY =
		new OintmentDrugFormMember1[] {
			OINT,
			NASOINT,
			OINTAPL,
			OPOINT,
			OTOINT,
			RECOINT,
			TOPOINT,
		};

	/**
	 * A public read-only list of all the '<em><b>Ointment Drug Form Member1</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<OintmentDrugFormMember1> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Ointment Drug Form Member1</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OintmentDrugFormMember1 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OintmentDrugFormMember1 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Ointment Drug Form Member1</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OintmentDrugFormMember1 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OintmentDrugFormMember1 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Ointment Drug Form Member1</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OintmentDrugFormMember1 get(int value) {
		switch (value) {
			case OINT_VALUE: return OINT;
			case NASOINT_VALUE: return NASOINT;
			case OINTAPL_VALUE: return OINTAPL;
			case OPOINT_VALUE: return OPOINT;
			case OTOINT_VALUE: return OTOINT;
			case RECOINT_VALUE: return RECOINT;
			case TOPOINT_VALUE: return TOPOINT;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private OintmentDrugFormMember1(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //OintmentDrugFormMember1
